#include <iostream>

using namespace std;

class Draw {
public:
	int Height;

	void drawTriangle(int Height) {
		for (int i = 1; i <= Height; i++) {
			for (int j = i; j < Height; j++) {
				cout << " ";
			}
			for (int p = 0; p < 2 * i - 1; p++) {
				cout << "*" ;
			}
			cout << endl;
		}

	}

	void drawRectangle(int length, int Height) {
		for (int i = 0; i < length; i++) {
			for (int j = 0; j < Height; j++) {
				cout << "*";
			}
			cout << endl;
		}
	}


	void drawSquare(int side) {
		for (int i = 0; i < side; i++) {
			for (int j = 0; j < side; j++) {
				cout << "*";
		}
		cout << endl;
		}
	}

	void drawParallelogram(int length, int Height) {
		for (int i = 0; i <= length; i++) {
			for (int j = 0; j < i; j++) {
				cout << " ";
			}
			for (int k = 0; k < length; k++) {
				cout << "*";
			}
			cout << endl;
		}
	}
};



int main() {
	Draw draw1;


	cout << "Triangle\n"  << endl;
	draw1.drawTriangle(5);

	cout << "\nRectangle\n" << endl;
	draw1.drawRectangle(4,5);

	cout << "\nSquare\n" << endl;
	draw1.drawSquare(4);

	cout << "\nParallelogram\n" << endl;
	draw1.drawParallelogram(5, 6);

	return 0;
}

